package com.qf.entity;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* @TableName product
*/
@Data
@HeadRowHeight(20)
@ColumnWidth(20)
public class Product implements Serializable {

    /**
    * 商品ID
    */
    @ExcelProperty(value = "商品ID", index = 0)
    private Long id;
    /**
    * 商品名称
    */
    @ExcelProperty(value = "商品名称", index = 1)
    private String name;
    /**
    * 分类ID
    */
    @ExcelProperty(value = "分类ID", index = 2)
    private Long categoryId;
    /**
    * 品牌
    */
    @ExcelProperty(value = "品牌", index = 3)
    private String brand;
    /**
    * 售价
    */
    @ExcelProperty(value = "售价", index = 4)
    private BigDecimal price;
    /**
    * 库存数量
    */
    @ExcelProperty(value = "库存数量", index = 5)
    private Integer stock;
    /**
    * 状态 1=下架 0=上架
     * int 类型默认值是0
     * 所以要使用包装类Integer
    */
    @ExcelProperty(value = "状态", index = 6)
    private Integer status;
    /**
    * 商品描述
    */
    @ExcelIgnore
    private String description;
    /**
    * 封面图URL
    */
    @ExcelIgnore
    private String coverImage;
    /**
    *
    */
    @ExcelIgnore
    private Date createdAt;
    /**
    *
    */
    @ExcelIgnore
    private Date updatedAt;
    /**
    * 暂定列
    */
    @ExcelProperty(value = "属性1")
    private String attr1 = "Y";
    /**
    * 暂定列
    */
    @ExcelIgnore
    private String attr2;
    /**
    * 暂定列
    */
    @ExcelIgnore
    private String attr3;
    /**
    * 暂定列
    */
    @ExcelIgnore
    private String attr4;

}
